import VueRouter from "vue-router";

import EquipmentOperationVue from "@/components/EquipmentOperation.vue"
import ElectricalEquipmentVue from "@/components/ElectricalEquipment.vue"
import AlarmListVue from "@/components/AlarmList.vue";
import DataAnalysisHADVue from "@/components/DataAnalysis/DataAnalysis_HistoricalAlarmData.vue";
import DataAnalysisDHDVue from "@/components/DataAnalysis/DataAnalysis_DeviceHistoricalData.vue"
import DataAnalysisDHAVue from "@/components/DataAnalysis/DataAnalysis_DeviceHistoryAnalysis.vue"
import DeviceHistoryAlarmVue from "@/components/DeviceHistoryAlarm.vue";
import KnowledgeBaseDetailVue from "@/components/KnowledgeBaseDetail.vue";
import QuantityGroupingVue from "@/components/QuantityGrouping.vue";
import SystemDiagramVue from "@/components/SystemDiagram.vue";
import ThreeDimensionalInspectionVue from "@/components/ThreeDimensionalInspection.vue";
import VideoSurveillanceVue from "@/components/VideoSurveillance.vue";

const router = new VueRouter({
    mode: 'history',
    routes: [
        //设备运行
        {
            name:'EquipmentOperation',
            path:'/equipmentOperation',
            component:EquipmentOperationVue
        },
        //电气设备管理
        {
            name:'ElectricalEquipment',
            path:'/electricalEquipment',
            component:ElectricalEquipmentVue,
        },
        {
            // 告警列表
            name: 'AlarmList',
            path: '/alarmList',
            component: AlarmListVue,
        },
        {
            // 数据分析_历史告警数据
            name: 'DataAnalysisHAD',
            path: '/dataAnalysis1',
            component: DataAnalysisHADVue
        },
        {
            // 数据分析_设备历史分析
            name: 'DataAnalysisDHD',
            path: '/dataAnalysis2',
            component: DataAnalysisDHDVue
        },
        {
            // 数据分析_设备历史数据
            name: 'DataAnalysisDHA',
            path: '/dataAnalysis3',
            component: DataAnalysisDHAVue
        },
        {
            // 历史告警
            name: 'DeviceHistoryAlarm',
            path: '/deviceHistoryAlarm',
            component: DeviceHistoryAlarmVue
        },
        {
            // 知识库
            name: 'KnowledgeBaseDetail',
            path: '/knowledgeBaseDetail',
            component: KnowledgeBaseDetailVue
        },
        {
            // 实时数据分析
            name: 'QuantityGrouping',
            path: '/quantityGrouping',
            component: QuantityGroupingVue
        },
        {
            // 图形化界面
            name: 'SystemDiagram',
            path: '/systemDiagram',
            component: SystemDiagramVue
        },
        {
            // 三维巡检
            name: 'ThreeDimensionalInspection',
            path: '/threeDimensionalInspection',
            component: ThreeDimensionalInspectionVue
        },
        {
            // 视频监控
            name: 'VideoSurveillance',
            path: '/videoSurveillance',
            component: VideoSurveillanceVue,
            children:[
                {
                    name: 'AllMonitoring',
                    path: '/allMonitoring',
                    component: () => import('../components/Video/AllMonitoring.vue')
                },
                {
                    name: 'RealTimeMonitoring',
                    path: '/realTimeMonitoring',
                    component: () => import('../components/Video/RealTimeMonitoring.vue')
                },

                {
                    name: 'ViewAllMonitoring',
                    path: '/viewAllMonitoring',
                    component: () => import('../components/Video/ViewAllMonitoring.vue')
                },
            ]
        },
    ]
})

export default router
